<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
</head>
<body>
<form action="{:url('save')}" method="post">
    <label for="name">name:</label><input type="text" name="name" id="name" />
    {volist name="Course->Klasses()->select()" id="klass"}
    <input type="checkbox" name="klass_id[]" id="klass_id_{$klass->id}" value="{$klass->id}" />
    <label for="klass_id_{$klass->id}">{$klass->name}</label>
    {/volist}
    <button type="submit">submit</button>
</form>
</body>
</html>